# 案例：外卖结算
# 要求：满 30 减 10 块，满 50 减 20，满 100 减 50，会员折上再 8 折。
money=float(input("请输入支付金额:"))
vip=input("你是否是vip: 是/否")
# if 30<=money<50:
#     money-=10
# elif  50<=money<100:
#     money -= 20
# elif  money>=100:
#     money -= 50
if money>=100:
    money -= 50
elif money>=50:
    money -= 20
elif money>=30:
    money -= 10
else:
    money-=0
if vip=="是":
    money*=0.8
print(f"支付金额为:{money}")


if vip==1:
    if money >= 100:
        money -= 50
    elif money >= 50:
        money -= 20
    elif money >= 30:
        money -= 10
    else:
        money -= 0
else:
    if money >= 100:
        money -= 50
    elif money >= 50:
        money -= 20
    elif money >= 30:
        money -= 10
    else:
        money -= 0









